<?php
	global $_W,$_GPC;
	if($_W['isajax']){
			$categoryname=$_GPC['classname'];
			$category_order = $_GPC['classorder'];
			$id = $_GPC['did'];
			$up = pdo_update('mii_ang_class',array('categoryname'=>$categoryname,'category_order'=>$category_order),array('id'=>$id));
			if($up){
					$code = array('status'=>'1','msg'=>'保存成功');
					exit(json_encode($code));
			}else{
				$code = array('status'=>'2','msg'=>'保存失败');
				exit(json_encode($code));
			}		

	}else{
		$code = array('status'=>'2','msg'=>'没有操作权限');
		exit(json_encode($code));
	}




?>